home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1996 #14 / Monster Media No. 14 (April 1996) (Monster Media, Inc.).ISO / rem_acc / q_a4ra11.zip / FRONTEND.Q&A < prev    next >
Text File  |  1996-02-04  |  29KB  |  1,173 lines

  1.  
  2.  
  3.  
  4.  
  5.              ▄█████▄  ▄▀▀▄   ▄█████▄ ▐█  ██  ██████▄ ▄█████▄
  6.              ██   ██  ▀▄▄▀   ██▄▄▄██ ██▄▄██▄ ██   ██ ██▄▄▄██
  7.              ██ ▀▄██ ▄▀  ▀▄▀ ██▀▀▀██ ▀▀▀▀██▀ ██████  ██▀▀▀██
  8.              ▀████▀▄ ▀▄  ▄▀▄ ██   ██     ██  ██  ▀██ ██   ██
  9.                        ▀▀  ▀
  10.                               Revision 11
  11.  
  12.                 Questions and Answers for RemoteAccess 2.x
  13.  
  14.                        ░░▒▒▓▓ FRONTEND.Q&A ▓▓▒▒░░
  15.  
  16.                            Updated on 02/04/96
  17.  
  18.                             By: Eric Staufer
  19.                           The Concession Stand
  20.                            FidoNet 1:374/6568
  21.  
  22.  
  23.  
  24.  
  25. Setups for the following frontend mailers with RA:
  26.  
  27.  * FrontDoor Setup with RemoteAccess
  28.  * D'Bridge Setup with RemoteAccess
  29.  * InterMail Setup with RemoteAccess
  30.  * Binkley Term with RemoteAccess and OS/2
  31.  
  32.  
  33.  ░▒▓█ FrontDoor Setup with RemoteAccess █▓▒░
  34.  
  35.  
  36. Here is The Concession Stand's batch file on how to run RemoteAccess,
  37. FrontDoor, FastEcho, and RATick.
  38.  
  39. @Echo Off
  40. :START
  41. echo atm0h0d; >>Com1
  42. cd\ra
  43. RA -m\FD\FD.EXE*M -E35
  44. if errorlevel 150 goto SYSMAINT
  45. if errorlevel 100 goto UNPACK
  46. if errorlevel  76 goto RATICK
  47. if errorlevel  35 goto START
  48. if errorlevel  10 goto END
  49. if errorlevel   4 goto ECHO
  50. if errorlevel   3 goto NETMAIL
  51. if errorlevel   2 goto LOCAL
  52. if errorlevel   0 goto START
  53. goto END
  54.  
  55. :SYSMAINT
  56. echo atm0h1 >>Com1
  57. cd\ra
  58. rauser -S -P
  59. goto START
  60.  
  61. :UNPACK
  62. if exist c:\fd\file\*.SU* goto TOSSIT
  63. if exist c:\fd\file\*.MO* goto TOSSIT
  64. if exist c:\fd\file\*.TU* goto TOSSIT
  65. if exist c:\fd\file\*.WE* goto TOSSIT
  66. if exist c:\fd\file\*.TH* goto TOSSIT
  67. if exist c:\fd\file\*.FR* goto TOSSIT
  68. if exist c:\fd\file\*.SA* goto TOSSIT
  69. if exist c:\fd\file\*.tic goto RATICK
  70. goto START
  71.  
  72. :TOSSIT
  73. echo atm0h1 >>Com1
  74. cd\fd\fastecho
  75. fastecho toss
  76. cd\ra
  77. ramsg link -clean -hudson
  78. ramsg pack -purge -delete -recover -renumber -overwrite -link
  79. if exist c:\fd\file\*.tic goto RATICK
  80. echo atm0h0d; >>com1
  81. goto START
  82.  
  83. :RATICK
  84. cd\ra\ratick
  85. ratick
  86. cd\fd
  87. goto START
  88.  
  89. :ECHO
  90. cd\fd\fastecho
  91. fastecho scan
  92. cd\fd
  93. goto START
  94.  
  95. :LOCAL
  96. Echo ATM0H1 >>com1
  97. RA -L -E35
  98. Echo atm0h0d; >>Com1
  99. goto START
  100.  
  101. :NETMAIL
  102. cd\fd\fastecho
  103. fastecho scan
  104. cd\fd
  105. goto START
  106.  
  107. :END
  108. Echo:
  109. Echo: Calling up BBS in 5 seconds, press CTRL-C to abort.
  110. Echo:
  111. wait 5
  112. bbs
  113.  
  114.  
  115. here is Stu Grant's Multinode Batch file for FrontDoor, RemoteAccess, and
  116. FMail.
  117.  
  118.       -=- The easiest setup to get to the shell to mailer mode is -=-
  119.  
  120.       RA -m\fd\fd.exe*m -E20
  121.  
  122.  -*-  This calls up RemoteAccess and tells it to shell to FrontDoor
  123.       to wait for the caller, swapping memory and exits at the errorlevel
  124.       of 20.  Make sure that your Errorlevels match up with FDSETUP
  125.       and the RACONFIG.  -*-
  126.  
  127.       Batch file to run 1 node, with maintenance for some programs.
  128.  
  129. @echo off
  130. :: echo on (for debug)
  131. cls
  132.  
  133. ::
  134. ::    The Hole BBS (Node 1)
  135. ::    Written by Sysop: Stu Grant
  136. ::
  137. ::    The BAT files to run Node 2 and the Local Node are very simple and
  138. ::    incorporate only the first part of this one.  Node 2 needs only to
  139. ::    exit with an errorlevel at Midnight and check for the MAINT.FLG and
  140. ::    then loop until this one is finished running Maint (see midnight).
  141. ::
  142. ::    Here it is!
  143. ::
  144.  
  145. ::  ---- This sets up the Multiline Chat Door -----
  146.  
  147. cd\ra\doors\chat
  148. cmsetup /R
  149.  
  150. :: ----- Fire up the Fossil for a DV Window ----
  151.  
  152. :: c:\ra\bnu.com /f+ /m- /l0:19200
  153.  
  154. ::  ---- Let's Start The BBS (Node 1) ----
  155.  
  156. :start
  157. c:
  158. cls
  159. echo ath0 >com1
  160. echo Firing up The Hole Node 1 ....
  161.  
  162. ::  ---- Let's set the environments
  163.  
  164. cd\ra\line1
  165. set ra=c:\ra
  166. set fd=c:\fd
  167. set dszlog=c:\ra\dsz.log
  168. set dszport=0
  169.  
  170. ::  ---- Condition checks and actions ----
  171.  
  172. cd c:\fd\file
  173. if exist c:\ra\line1\dsz.log del \ra\line1\dsz.log
  174. if exist c:\fd\file\*.tic del *.tic
  175. if exist nodediff.* goto newnode
  176. if exist bre804.* goto bre
  177. if exist rushnet.* goto rush
  178. if exist c:\fd\file\update.ffs goto update
  179. if exist c:\ra\working\*.dat del c:\ra\working\*.dat
  180.  
  181. ::  ---- Fire up RA and Shell to FrontEnd Mailer ----
  182.  
  183. cd \ra\line1
  184. ra -m\fd\fd.exe*m -e20
  185.  
  186. ::  ---- Errorlevels to trap for action -----
  187.  
  188. if errorlevel 93 goto midnight
  189. if errorlevel 38 goto unpackmail
  190. if errorlevel 20 goto start
  191. if errorlevel 15 goto reboot
  192. if errorlevel 10 goto out
  193. if errorlevel 5 goto both
  194. if errorlevel 4 goto echo
  195. if errorlevel 3 goto net
  196. if errorlevel 2 goto restart_ra
  197. if errorlevel 1 goto start
  198. if errorlevel O goto start
  199.  
  200. ::  ---- Next Line in case an errorlevel was missed -----
  201.  
  202. goto start
  203.  
  204. ::  ---- Log back on after type 15 with errorlevel, See docs! ----
  205.  
  206. :restart_ra
  207.  
  208. echo ath0 >com1
  209. c:
  210. cd \ra\line1
  211. ra -r -g -e20
  212. if errorlevel 93 goto midnight
  213. if errorlevel 38 goto unpackmail
  214. if errorlevel 20 goto start
  215. if errorlevel 15 goto reboot
  216. if errorlevel 10 goto out
  217. if errorlevel 5 goto both
  218. if errorlevel 4 goto echo
  219. if errorlevel 3 goto net
  220. if errorlevel 1 goto start
  221. if errorlevel O goto start
  222.  
  223. goto start
  224.  
  225. ::  ---- Scan for Mail after Logoff if EchoMail entered ----
  226.  
  227. :echo
  228.  
  229. echo ath1 >com1
  230.  
  231. fmail scan
  232. goto start
  233.  
  234. ::  ---- Scan for Mail after Logoff if Echo AND NetMail entered ----
  235.  
  236. :both
  237.  
  238. echo ath1 >com1
  239.  
  240. fmail scan
  241. goto start
  242.  
  243. ::  ---- Export NetMail to folder after logoff ----
  244.  
  245. :net
  246.  
  247. echo ath1 >com1
  248.  
  249. cd \ra
  250. mbutil export
  251. goto start
  252.  
  253. ::  ---- This handles updates for FFS ----
  254.  
  255. :update
  256.  
  257. echo ath1 >com1
  258.  
  259. if exist update.* pkunzip -o update.* c:\ra\doors\findfile
  260. if exist update.* del update.*
  261. goto start
  262.  
  263. ::  ---- Unpack and Toss incomming Mail packets ----
  264.  
  265. :unpackmail
  266.  
  267. echo ath1 >com1
  268.  
  269. cd c:\fd\fmail
  270. fmail toss import
  271. goto start
  272.  
  273. ::  ---- Process the various Nodediffs when received ----
  274.  
  275. :newnode
  276.  
  277. echo ath1 >com1
  278.  
  279. cd c:\fd\file
  280. copy nodediff.* c:\fd\fido
  281. pkunpak -r nodediff.* c:\fd\nodelist
  282. del c:\fd\file\nodediff.*
  283. goto start
  284.  
  285. :bre
  286.  
  287. echo ath1 >com1
  288.  
  289. cd\fd\file
  290. copy bre804.* c:\fd\fido
  291. pkunpak -r bre804.* c:\fd\nodelist
  292. del C:\fd\file\bre804.*
  293. goto start
  294.  
  295. :rush
  296.  
  297. echo ath1 >com1
  298.  
  299. cd\fd\file
  300. copy rushnet.* c:\fd\fido
  301. pkunpak -r rushnet.* c:\fd\nodelist
  302. del c:\fd\file\rushnet.*
  303. goto start
  304.  
  305. ::
  306. ::  ---- This attempts to handle INIT failures by FrontDoor ----
  307. ::  ---- Since I run under OS/2 I must attempt to re-init   ----
  308. ::  ---- the modem.  Under DOS or DV I would run a COLD BOOT ---
  309. ::  ---- program.  Such as REBOOT.EXE
  310. ::
  311.  
  312. :reboot
  313.  
  314. cls
  315. echo System Attempting to Re-initialize the Modem.....
  316.  
  317. echo ATH0 >COM1
  318. delay 10
  319. echo ATH1 >COM1
  320. delay 10
  321. echo ATH0 >COM1
  322. delay 10
  323. echo ATH1 >COM1
  324. delay 60
  325. echo ATH0 >COM1
  326.  
  327. goto start
  328.  
  329. ::  ---- Exit to DOS (Only for FORCED Errorlevels!) ----
  330. ::  ---- This is an exit and The BBS is DOWN!! ----
  331.  
  332. :out
  333.  
  334. cd \fd
  335. echo ath1 >com1
  336. echo atm0 >com1
  337. goto end
  338.  
  339. ::  ---- Let's start the Midnight Maintenance ----
  340.  
  341. :midnight
  342.  
  343. echo ath1 >com1
  344. cls
  345.  
  346. :: ---- I like noise ----
  347.  
  348. beep 440 4 587 2 1040 6
  349. beep 440 4 587 2 1040 6
  350. beep 440 4 587 2 1040 6
  351.  
  352. ::  ---- This must run PRIOR to Midnight ----
  353.  
  354. c:
  355. cd\ra\doors\racall
  356. addtoday.exe c:\ra
  357. cd\fd\file
  358. if exist *.lzh del *.lzh
  359. if exist *.tic del *.tic
  360.  
  361. ::
  362. ::  ---- Set flag for Node 2 to stay down during Maint ----
  363. ::  ---- Set flag to check that Node 2 is down ----
  364. ::  ---- Also set flags to FORCE Node 2 down ----
  365. ::
  366.  
  367. cls
  368. cd\ra
  369. echo >maint.flg
  370. echo >check.flg
  371. echo >raxit2.65
  372.  
  373. ::
  374. ::  ---- Node 2 Must be down to continue ----
  375. ::
  376. ::  ---- What follows is The Hole Nightly Maintenance ----
  377. ::  ---- this would be unique for every BBS but this  ----
  378. ::  ---- has some nice examples in it for RA Utilities ---
  379. ::
  380.  
  381. :maint
  382.  
  383. cls
  384. echo Waiting on Node 2 to go down .....
  385. if exist c:\ra\check.flg goto maint
  386. cls
  387. echo Node 2 is down, Let's Rock & Roll......
  388. delay 2
  389.  
  390. cd\ra\line1
  391. ramsg link -clean -hudson
  392. ramsg pack -overwrite -renumber -purge -delete -recover -link
  393. rauser -s -p -m20 -d60
  394. rafile clean g2 /km
  395. rafile compress g2
  396. rafile sort g2
  397. cd\ra
  398. dstat /g
  399. cd\ra\raman
  400. raman raman.cfg
  401. del *.log
  402. cd\cdrom
  403. rafile filelist geofile.doc /bcomment.asc @area1.lst
  404. rafile filelist thehole.doc /bcomment.asc @area.lst
  405. move c:\cdrom\*.doc e:\files\misc
  406. del *.log
  407. e:
  408. cd\files\misc
  409. pkzip -f -o allfiles.zip thehole.doc
  410. pkzip -f -o geofiles.zip geofile.doc
  411. rafile update allfiles.zip 20 touchmod
  412. rafile update geofiles.zip 20 touchmod
  413. rafile update newfiles.zip 20 touchmod
  414. del *.doc
  415. del *.log
  416. c:
  417. cd\ra\doors
  418. if exist *.log del *.log
  419. if exist *.trn del *.trn
  420. rmu
  421. cd\ra\doors\uv
  422. mdaily
  423. cd\ra\doors\fishing
  424. fishmant
  425. if exist *.log del *.log
  426. cd\ra\tradewar
  427. if exist inuse.flg del inuse.flg
  428. extern
  429. if exist *.log del *.log
  430. cd\ra\doors\isa
  431. isapack /u
  432. isa /f
  433. isa /m
  434. isapack /p
  435. isa /p 60
  436. isaclean
  437. if exist *.log del *.log
  438. cd\ra\doors\bre
  439. if exist inuse.flg del inuse.flg
  440. bre inbound
  441. bre recon
  442. bre planetary
  443. if exist inuse.flg del inuse.flg
  444. if exist log.txt del log.txt
  445. cd\ra\doors\bre2
  446. if exist inuse.flg del inuse.flg
  447. bre inbound
  448. bre planetary
  449. brscores
  450. if exist *.log del *.log
  451. if exist log.txt del log.txt
  452. cd\ra\doors\race
  453. pitmast
  454. if exist *.log del *.log
  455. cd\fd\fmail
  456. if exist *.log del *.log
  457. cd\ra\line3
  458. if exist *.log del *.log
  459. cd\fd\nodelist
  460. if exist c:\fd\nodelist\nodediff.* goto merge
  461. cd\ra
  462. del maint.flg
  463. del raxit2.65
  464. cd\fd
  465. del fdxit.65
  466. cd\ra\line1
  467. cls
  468. beep 440 4 587 2 1040 6
  469. beep 440 4 587 2 1040 6
  470. beep 440 4 587 2 1040 6
  471.  
  472. goto start
  473.  
  474. ::  ---- Merge the Nodelists while Node 2 is down ----
  475. ::  ---- If there was no Node 2 this could be done ---
  476. ::  ---- when NODEDIFF is processed (see NEWNODE) ----
  477.  
  478. :merge
  479.  
  480. sysnl merge nodelist nodediff c
  481. cd c:\fd
  482. fdnc /f
  483. del c:\fd\file\nodediff.*
  484. cd \ra
  485. ranode fdnet.pvt
  486. del maint.flg
  487. del raxit2.65
  488. cd\fd
  489. del fdxit.65
  490. cd\ra\line1
  491. cls
  492. beep 440 4 587 2 1040 6
  493. beep 440 4 587 2 1040 6
  494. beep 440 4 587 2 1040 6
  495.  
  496. goto start
  497.  
  498. ::  --- And if ALL Else fails ----
  499.  
  500. :end
  501.  
  502. echo The Hole Line 1 is now down!
  503.  
  504. exit
  505.  
  506.       How to run Node 2 with RemoteAccess
  507.       used with above Batch file.
  508.  
  509. @echo off
  510. rem echo on
  511. cls
  512.  
  513. ::
  514. ::   The Hole BBS (Node 2)
  515. ::   Written by Sysop: Stu Grant
  516. ::
  517. ::   This BAT file is VERY similar to the Node 1 BAT file EXCEPT that it
  518. ::   runs NO maintenance and instead waits for Node 1 to finish it's job
  519. ::   before resuming.  The process of taking down both Nodes (and making
  520. ::   SURE they are down) is quite easy (see the section on WAIT).
  521. ::
  522. ::   Here it is!
  523. ::
  524.  
  525. ::  ---- Let's Start The BBS (Node 2) ----
  526.  
  527. ::  ---- Fire up the Fossil for a DV Window -----
  528.  
  529. :: c:\ra\bnu.com /f+ /m-
  530.  
  531. :start
  532.  
  533. c:
  534. echo ath0 >com2
  535. cls
  536. echo  Firing up The Hole (Node 2)  .....
  537.  
  538. ::  ---- Let's set the environments
  539.  
  540. cd \ra\line2
  541. set ra=c:\ra
  542. set dszlog=c:\ra\dsz.log
  543. set dszport=1
  544.  
  545. ::  ---- Condition checks and actions ----
  546.  
  547. cd c:\fd\file
  548. if exist c:\ra\line2\dsz.log del \ra\line2\dsz.log
  549. if exist c:\fd\file\*.tic del *.tic
  550.  
  551. ::  ---- Special program to put Last BBS caller on FD screen ----
  552. ::
  553. :: cd\ra\line2
  554. :: ra2fd -rc:\ra\lastcall.bbs -fc:\fd\lastcall.fd -a1:275/72 -t
  555. ::
  556. ::  ---- Fire up RA and Shell to FrontEnd Mailer ----
  557.  
  558. cd\ra\line2
  559.  
  560. ra -n2 -m\fd\fd.exe*m -e20
  561.  
  562. ::  ---- Errorlevels to trap for action ----
  563.  
  564. if errorlevel 65 goto wait
  565. if errorlevel 38 goto unpackmail
  566. if errorlevel 20 goto start
  567. if errorlevel 15 goto reboot
  568. if errorlevel 10 goto out
  569. if errorlevel 5 goto both
  570. if errorlevel 4 goto echo
  571. if errorlevel 3 goto net
  572. if errorlevel 2 goto restart_ra
  573. if errorlevel 1 goto start
  574. if errorlevel O goto start
  575.  
  576. ::  ---- Next Line in case an errorlevel was missed -----
  577.  
  578. goto start
  579.  
  580. ::  ---- Log back on after type 15 with errorlevel, See docs! ----
  581.  
  582. :restart_ra
  583.  
  584. echo ath0 >com2
  585. c:
  586. cd \ra\line2
  587. ra -r -g -e20
  588. if errorlevel 65 goto wait
  589. if errorlevel 38 goto unpackmail
  590. if errorlevel 20 goto start
  591. if errorlevel 15 goto reboot
  592. if errorlevel 10 goto out
  593. if errorlevel 5 goto both
  594. if errorlevel 4 goto echo
  595. if errorlevel 3 goto net
  596. if errorlevel 1 goto start
  597. if errorlevel O goto start
  598. goto start
  599.  
  600. ::  ---- Scan for Mail after Logoff if message base changed ----
  601.  
  602. :echo
  603.  
  604. echo ath1 >com2
  605.  
  606. fmail scan
  607. goto start
  608.  
  609. ::  ---- Scan for Mail after Logoff if message base OR folder has changed ----
  610.  
  611. :both
  612.  
  613. echo ath1 >com2
  614.  
  615. fmail scan
  616. goto start
  617.  
  618. ::  ---- Export NetMail to folder ----
  619.  
  620. :net
  621.  
  622. echo ath1 >com2
  623.  
  624. cd \ra
  625. mbutil export
  626. goto start
  627.  
  628. ::  ---- Unpack and Toss incomming Mail packets ----
  629.  
  630. :unpackmail
  631.  
  632. echo ath1 >com2
  633.  
  634. cd c:\fd\fmail
  635. fmail toss import
  636.  
  637. goto start
  638.  
  639. ::  ---- This attempts to handle INIT failures by FrontDoor ----
  640. ::  ---- Since I run under OS/2 I must attempt to re-init   ----
  641. ::  ---- the modem.  Under DOS or DV I would run a COLD BOOT ---
  642. ::  ---- program.  Such as REBOOT.EXE
  643.  
  644. :reboot
  645.  
  646. echo ath0 >com2
  647. delay 10
  648. echo ath1 >com2
  649. delay 10
  650. echo ath0 >com2
  651. delay 10
  652. echo ath1 >com2
  653. delay 60
  654. echo ath0 >com2
  655.  
  656. goto start
  657.  
  658. ::  ---- Exit to DOS (Only for FORCED Errorlevels!) ----
  659. ::  ---- This is an exit and The BBS is DOWN!! ----
  660.  
  661. :out
  662.  
  663. cd \fd
  664. echo ath1 >com2
  665. echo atm0 >com2
  666. goto end
  667.  
  668. ::  ---- Node 2 must be down while Node 1 runs Maint AND
  669. ::  ---- Node 1 will NOT begin until CHECK.FLG is deleted AND
  670. ::  ---- Node 2 will NOT come back up until MAINT.FLG is deleted.
  671. ::  ---- Node 2 should be taken down by an EVENT but we will
  672. ::  ---- have Node 1 force it down with RAXITn.e just in case.
  673.  
  674. :wait
  675.  
  676. cls
  677. echo ath1 >com2
  678. echo The Hole Node 2 is going down.....
  679. delay 5
  680.  
  681. cd\ra
  682. if exist c:\ra\check.flg del c:\ra\check.flg
  683.  
  684. :: now Node 1 can take off....
  685.  
  686. ::  ---- If the above condition was NOT met then Node 1 is NOT ----
  687. ::  ---- down then Node 2 would simply fire back up, This is not---
  688. ::  ---- a problem as Node 1 will force Node 2 down when it goes --
  689. ::  ---- down.  This MAY occur due to a quirk in the timing of  ---
  690. ::  ---- the events.  (That is why we have the force option :)
  691. ::
  692. ::  ---- Once CHECK.FLG is deleted Node 1 can do its thing and ----
  693. ::  ---- Node 2 enters a wait (loop) per below ----
  694.  
  695. :loop
  696.  
  697. cls
  698. echo Node 1 is doing its Maintenance thing, gotta wait dude....
  699. if exist c:\ra\maint.flg goto loop
  700. goto start
  701.  
  702. ::  ---- And if all else fails ----
  703.  
  704. :end
  705.  
  706. echo The Hole BBS is down on Node 2 !
  707.  
  708. exit
  709.  
  710.       How to run a local 3rd node with RemoteAccess.
  711.  
  712. @echo off
  713.  
  714.  
  715. ::
  716. ::  ---- The Hole BBS (Local Node 3) ----
  717. ::  ---- Written by Sysop: Stu Grant ----
  718. ::
  719. ::
  720. ::  ---- This is the BAT file that runs The Hole Local Node ----
  721. ::  ---- The only function besides the board is the scan for ---
  722. ::  ---- mail at logoff and of course this Node shuts down -----
  723. ::
  724.  
  725.  
  726. :start
  727.         c:
  728.         echo Firing up Stu's private line .....
  729.         cd \ra\line3
  730.         set dszlog=c:\ra\dsz.log
  731.         set ra=c:\ra
  732.         set fd=c:\fd
  733.         if exist c:\ra\dsz.log del \ra\dsz.log
  734.         ra -l -n3 -e20
  735.         if errorlevel 20 goto out
  736.         if errorlevel 10 goto out
  737.         if errorlevel 5 goto echo
  738.         if errorlevel 4 goto both
  739.         if errorlevel 3 goto net
  740.         if errorlevel O goto out
  741.         goto start
  742.  
  743. :echo
  744.         fmail scan
  745.         goto out
  746.  
  747. :both
  748.         fmail scan
  749.         goto out
  750.  
  751. :net
  752.         cd \ra
  753.         mbutil export
  754.         goto out
  755.  
  756. :out
  757.         echo Later days Stu .......
  758.         delay 3
  759.         exit
  760.  
  761.  
  762.  ░▒▓█ D'Bridge Setup with RemoteAccess █▓▒░
  763.  
  764.  Here's how I do NetMail with RA and D'Bridge =only=... no other tossers or
  765.  utilities needed...  With this method I can write NetMail in RA =or= in
  766.  DB's Editor:
  767.  
  768.  Here's a way to do NetMail with RA and D'Bridge 1.5x =only=... no
  769.  other tossers or utilities needed. With this method you can write 
  770.  NetMail in RA =or= in DB's Editor:
  771.  
  772.  1. Call EXEBBS.BAT from your DOS AUTOEXEC.BAT, i.e. C:\RA\EXEBBS.BAT
  773.  
  774.  2. The following is an edited (to save space) EXEBBS.BAT:
  775.  
  776.    :START
  777.      CD\RA
  778.      RA -P -M\DB\DB.EXE*M
  779.      If Errorlevel 10 goto EXIT
  780.      If Errorlevel 5 goto NET_ECHO
  781.      If Errorlevel 4 goto ECHO_ONLY
  782.      If Errorlevel 3 goto NET_ONLY
  783.      If Errorlevel 2 goto EXIT
  784.      Goto AFTER_2
  785.    :NET_ECHO
  786.      ECHO > C:\DB\DBRIDGE.RSN
  787.      ECHO > C:\DB\DBRIDGE.RSE
  788.      goto AFTER_2
  789.    :ECHO_ONLY
  790.      ECHO > C:\DB\DBRIDGE.RSE
  791.      goto AFTER_2
  792.    :NET_ONLY
  793.      ECHO > C:\DB\DBRIDGE.RSN
  794.      goto AFTER_2
  795.    :AFTER_2
  796.      Goto START
  797.    :EXIT
  798.  
  799.  3. In D'Bridge create a NetMail echomail area (#14 for example here) and 
  800.     use the QuickBBS format. D'Bridge will automatically create a #0 NetMail 
  801.     area.  Go to DBee's EDITOR>ECHOmail areas>LOCAL/ECHOMAIL area manager>
  802.                    Area  # 14
  803.                   Storage: QuickBBS
  804.             QuickBBS area: 14
  805.                 Area type: Echomail
  806.      Quick directory path: C:\RA\MSGBASE\
  807.  
  808.  4. Go to D'Bridge CONFIG>Directory paths>
  809.      Network mail storage: QuickBBS
  810.      QuickBBS area number: 14
  811.  
  812.  5. Go to D'Bridge CONFIG>Packet/Mail control>
  813.      Inbound mail handling? Automatic
  814.  
  815.  6. Go to D'Bridge ADVANCED>BBS configuration>
  816.      DOS commands for BBS:
  817.       echo EXEBBS *P *B *T *C > C:\RA\DOBBS.BAT
  818.       XU Fifo:15 Port:0:On Lock:0:38400:8N1
  819.       *X
  820.      (The above example uses Ray Gwinn's X00150 fossil to lock com ports) 
  821.  
  822.  7.  Make sure your RA NetMail Message Area number and the DB NetMail
  823.      Message Area number are the same and that in RACONFIG>Manager>Msg
  824.      areas> you set =Type= to NetMail.
  825.  
  826.  This should be a good starting point and gives a pretty good idea how well  
  827.  RA and DBee can work together. 
  828.  
  829.  
  830.  ░▒▓█ InterMail setup with RemoteAccess █▓▒░
  831.  
  832.  Rem My Ra Runtime Batch File for (Line_1) 5-Apr-94
  833.  @Echo Off
  834. :Start
  835.  If exist C:\Qmx1\*.pkt copy C:\Qmx1\*.pkt C:\IM1\Secure
  836.  If exist C:\Qmx1\*.pkt Dstamp C:\IM1\Sema\Imexit02.108
  837.  If exist C:\Qmx1\*.pkt Del C:\Qmx1\*.pkt
  838.  If exist C:\Ra\Useron.bbs Del C:\Ra\Useron.bbs
  839.  CD\IM1\Mail
  840.  Echo Y|Zerokill %1
  841.  C:
  842.  Cd\Ra\Line1
  843.  Cd\IM1
  844.  IM /#1 /NOEMS
  845.  If Errorlevel 249 Goto HMB_Purge
  846.  If Errorlevel 110 Goto Maintenance
  847.  If Errorlevel 108 Goto Unpackmail
  848.  If Errorlevel 107 Goto Monthly
  849.  If Errorlevel 105 Goto Net&Echo
  850.  If Errorlevel 100 Goto Nodediff
  851.  If Errorlevel 50 Goto 28800_Baud
  852.  If Errorlevel 49 Goto 26400_Baud
  853.  If Errorlevel 48 Goto 24000_Baud
  854.  If Errorlevel 47 Goto 21600_Baud
  855.  If Errorlevel 46 Goto 19200_Baud
  856.  If Errorlevel 45 Goto 16800_Baud
  857.  If Errorlevel 44 Goto 14400_Baud
  858.  If Errorlevel 43 Goto 9600_Baud
  859.  If Errorlevel 42 Goto 2400_Baud
  860.  If Errorlevel 41 Goto 1200_Baud
  861.  If Errorlevel 40 Goto 300_Baud
  862.  If Errorlevel 32 Goto Local
  863.  If Errorlevel 10 Goto End
  864.  If Errorlevel  8 Goto IM_Already
  865.  
  866. :28800_Baud
  867.  Cd\Ra\Line1
  868.  Wait 10
  869.  C:\Ra\Ra.exe -B28800 -N1 -E20 -NOEMS
  870.  Goto After_BBS
  871.  
  872. :26400_Baud
  873.  Cd\Ra\Line1
  874.  Wait 10
  875.  C:\Ra\Ra.exe -B26400 -N1 -E20 -NOEMS
  876.  Goto After_BBS
  877.  
  878. :24000_Baud
  879.  Cd\Ra\Line1
  880.  Wait 10
  881.  C:\Ra\Ra.exe -B24000 -N1 -E20 -NOEMS
  882.  Goto After_BBS
  883.  
  884. :21600_Baud
  885.  Cd\Ra\Line1
  886.  Wait 10
  887.  C:\Ra\Ra.exe -B21600 -N1 -E20 -NOEMS
  888.  Goto After_BBS
  889.  
  890. :19200_Baud
  891.  Cd\Ra\Line1
  892.  Wait 10
  893.  C:\Ra\Ra.exe -B19200 -N1 -E20 -NOEMS
  894.  Goto After_BBS
  895.  
  896. :16800_Baud
  897.  Cd\Ra\Line1
  898.  Wait 10
  899.  C:\Ra\Ra.exe -B16800 -N1 -E20 -NOEMS
  900.  Goto After_BBS
  901.  
  902. :14400_Baud
  903.  Cd\Ra\Line1
  904.  Wait 10
  905.  C:\Ra\Ra.exe -B14400 -N1 -E20 -NOEMS
  906.  Goto After_BBS
  907.  
  908. :9600_Baud
  909.  Cd\Ra\Line1
  910.  Wait 10
  911.  C:\Ra\Ra.exe -B9600 -N1 -E20 -NOEMS
  912.  Goto After_BBS
  913.  
  914. :2400_Baud
  915.  Cd\Ra\Line1
  916.  Wait 10
  917.  C:\Ra\Ra.exe -B2400 -N1 -E20 -NOEMS
  918.  Goto After_BBS
  919.  
  920. :1200_Baud
  921.  Cd\Ra\Line1
  922.  Wait 10
  923.  C:\Ra\Ra.exe -B1200 -N1 -E20 -NOEMS
  924.  Goto After_BBS
  925.  
  926. :300_Baud
  927.  Cd\Ra\Line1
  928.  Wait 10
  929.  C:\Ra\Ra.exe -B300 -N1 -E20 -NOEMS
  930.  Goto After_BBS
  931.  
  932. :Local
  933.  Echo ATH1M0 >COM1
  934.  Cd\Ra\Line1
  935.  C:\Ra\Ra.exe -L -N1 -E20 -NOEMS
  936.  Cd\IM1
  937.  Goto Net&Echo
  938.  
  939. :After_BBS
  940.  Cd\Ra
  941.  Copy C:\Ra\Line1\Ra.log+C:\Ra\Line2\Ra.log C:\Ra\Both.log
  942.  Download
  943.  Upload
  944.  Del C:\Ra\Both.log
  945.  If Errorlevel 20 Goto Start
  946.  If Errorlevel 5 Goto Net&Echo
  947.  If Errorlevel 4 Goto Echo
  948.  If Errorlevel 3 Goto Net
  949.  Goto Start
  950.  
  951. :Unpackmail
  952.  Dstamp C:\IM1\Sema\Imexit02.108
  953.  Goto Start
  954.  
  955. :Net&Echo
  956.  CD\IM2
  957.  Echo ATH1M0 >COM1
  958.  Dstamp C:\IM1\Sema\Imexit02.105
  959.  Goto Start
  960.  
  961. :Echo
  962.  CD\IM2
  963.  Echo ATH1M0 >COM1
  964.  Dstamp C:\IM1\Sema\Imexit02.105
  965.  Goto Start
  966.  
  967. :Net
  968.  CD\IM2
  969.  Echo ATH1M0 >COM1
  970.  Dstamp C:\IM1\Sema\Imexit02.105
  971.  Goto Start
  972.  
  973. :Restart
  974.  Ra -R -E0 -N1 -NOEMS
  975.  Cd\IM1
  976.  Goto Start
  977.  
  978. :IM_Already
  979.  Exit
  980.  
  981. :End
  982.  
  983.  
  984.  ░▒▓█ How to Setup BinkleyTerm and RemoteAccess using OS/2 █▓▒░
  985.  
  986.  
  987.                  How to run an OS/2 Mailer with a DOS BBS Program
  988.                  ------------------------------------------------
  989.  
  990. Disclaimer
  991. ----------
  992.  
  993.      Standard, but required.  This textfile is meant for advice only, and the
  994. author is not responsible for any damages that occur through the use of this
  995. document.  If what you have now is in one piece, and using this textfile leaves
  996. you with two broken pieces, I suggest you go out and buy an economy size tube of
  997. KrazyGlue<tm>   8-)
  998.  
  999. Notes
  1000. -----
  1001.  
  1002.      In this document, when I have listed lines from my configuration files,
  1003. each line is preceded by a '>' character.  Do not type this in, it's just to
  1004. show that this is a file line, not part of my babbling  8-)
  1005.  
  1006. Now, on to the Good Stuff
  1007. -------------------------
  1008.  
  1009.      What will this textfile allow you to do ?  Specifically, coach you in
  1010. setting up BinkleyTerm v2.50EE with RemoteAccess v2.01.  Hopefully, the idea
  1011. will be usable with any OS/2 Mailer (or Comm program for that matter) and DOS
  1012. BBS.  
  1013.  
  1014. My configuration (i.e. what I _know_ it works with)
  1015.  
  1016.      - BinkleyTerm/2 v2.50EE
  1017.      - RemoteAccess v2.01
  1018.      - SIO (SIO, VSIO, VX00) v1.20
  1019.      - 4OS2-32 v1.11
  1020.  
  1021. How to do it
  1022. ------------
  1023.  
  1024.      The important thing to do is remove protection from the port you will be
  1025. using. OS/2 built in protection is what comes up and says "Sharing violation on
  1026. COMx".  SIO allows you to remove protection for a port (although it's not
  1027. documented).  I checked with Ray Gwinn that it was alright to document it here,
  1028. so this is how : In CONFIG.SYS, put a dash (-) in the 5th position of the comm
  1029. port parameters.  If you are not using the 4th parameter, put an extra comma to
  1030. space it out correctly.  For example, my setup using COM2 locked at 38400
  1031. without protection is :
  1032.  
  1033. > DEVICE=C:\OS2\EXTRAS\SIO.SYS (COM2:38400,,,-)
  1034.  
  1035. Load VX00.SYS as usual after this.  This is all that's required for CONFIG.SYS
  1036.  
  1037. Now, in Binkley.Cfg, I use BBSSpawn.  My SPAWNBBS.CMD contains this :
  1038.  
  1039. > echo EXEBBS %2 2 %4 %5 > D:\RA\DOBBS.BAT
  1040. > start "RemoteAccess" /FG /FS /WAIT /DOS=C:\OS2\4DOS\RA.INI D:\RA\DOBBS.BAT
  1041.  
  1042.      You'll notice that this echoes the parameters %BPS% %PORT% %EVENT TIME%
  1043. %EXTENDED CONNECT% into my \RA\DOBBS.BAT file.  I'm a recent FrontDoor convert,
  1044. and using this produces a DOBBS.BAT that is compatible with FD's. Also, notice
  1045. that I am forcing port 2 into the batch file.  This is because BT passes the
  1046. Port Handle that OS/2 assigns, which is not the physical port number.  If you
  1047. are running singleline, just force the port as I have.  If not, use a %PORT
  1048. environment variable to do the same task.
  1049.  
  1050.      You'll notice I'm using 4OS2 in the above example.  The reason is that
  1051. 4OS2-32 (not the 16 bit version) allows you to start a DOS session with a
  1052. specific set of settings, similar to the way you set up an object's DOS settings
  1053. on the workplace shell.  The file C:\OS2\4DOS\RA.INI contains the following :
  1054.  
  1055. > DOS_SHELL=C:\OS2\4DOS\4DOS.COM C:\OS2\4DOS @C:\OS2\4DOS\4DOSRA.INI
  1056. > DOS_DEVICE=C:\OS2\EXTRAS\VX00.SYS
  1057. > DOS_AUTOEXEC=C:\OS2\4DOS\BBSSTART.BAT
  1058. > SIO_ALLOW_ACCESS_COM2=1
  1059. > EMS_MEMORY_LIMIT=2048
  1060. > XMS_MEMORY_LIMIT=2048
  1061. > INT_DURING_IO=1
  1062.  
  1063.      This allows me to load VX00.SYS when the DOS session is spawned from the
  1064. Binkley window.  The /WAIT switch on the command line makes the session wait
  1065. until the DOS session closes to restart Binkley.  This eliminates the need to
  1066. use semaphores as detailed in the MAGIC package that has been available for some
  1067. time.  If you don't want or can't use 4OS2-32, you can try using HSTART or
  1068. STARTD, both of which allow you to start a DOS session with specific DOS
  1069. sessions.  Individual results may vary.
  1070.  
  1071. I think we need a subtitle here...
  1072. ----------------------------------
  1073.  
  1074.      The thing that has caused me (and other people) problems in the past is
  1075. with regard to SIO.  I don't fully understand it, but I'll try to put it as best
  1076. I can.  SIO has some part of it to handle the communication with DOS sessions. 
  1077. This part is not initialized when SIO loads, presumably to reduce overhead on
  1078. systems not using DOS communications.  The part is initialized the first time
  1079. that VX00.SYS is loaded. The problem is that if there is a carrier present when
  1080. this part is woken up, something happens.  The DOS app can send data out the
  1081. port, but nothing can travel inbound.
  1082.  
  1083.     The solution to this problem has been provided by Ray Gwinn, author of SIO.
  1084. I have spoken with him regarding this, and I'm not sure if my report helped him
  1085. track down the cause of the problem, but the following excerpt from SIO
  1086. v1.21k's READ.ME file explains :
  1087.  
  1088.  
  1089.            The method in which the SIO_Mode setting are implemented has
  1090.            been changed.  These settings specify only the initial mode
  1091.            settings to use for a DOS session.  Changes made to the mode
  1092.            (via a MODE or other command) within the DOS session are no
  1093.            longer lost.  The SIO_Mode settings isolate the DOS VDM's
  1094.            mode from that of OS/2 sessions in all but one case.  The
  1095.            one case is when the port is already opened when DOS first
  1096.            accesses it.  In this one case, the SIO_Mode settings are
  1097.            not applied.  Except for this one case, one should view OS/2
  1098.            as having its mode settings and DOS sessions as having an
  1099.            independent group of mode settings. 
  1100.  
  1101.    As you can see, the problem lied in SIO trying to apply the specified Mode
  1102. settings to an opened port. You need SIO v1.21k or higher (a beta version, it
  1103. is currently available as SIOBETA, but there may well be a release version
  1104. implementing the same fix by the time you read this) to perform this little
  1105. trick.
  1106.  
  1107. Other Versions of Programs
  1108. --------------------------
  1109.  
  1110. I am pretty sure that this will work using Standard BinkleyTerm/2, but I haven't
  1111. yet tried.  As long as your DOS BBS program runs well in a straight all DOS
  1112. combination under OS/2, it should work under this method.  For SIO, older
  1113. versions than v1.20 should work, but newer versions (usually) provide better
  1114. performance.
  1115.  
  1116. Th-Th-Th-That's All Folks!
  1117. --------------------------
  1118.  
  1119. Well, that's how it's done.  It works here for me, and I hope this will allow
  1120. people to do the same.  For further information, contact me via netmail at one
  1121. of the following addresses :
  1122.  
  1123. 1:250/301   @ fidonet
  1124. 18:105/301  @ zyxelnet
  1125. 40:6482/301 @ ibmnet
  1126. 81:416/236  @ nanet
  1127.  
  1128. File Request Names
  1129. ------------------
  1130.  
  1131. BinkleyTerm -  BTOS2_258.ARJ for BinkleyTerm/2 v2.58 wide beta.  Michael
  1132.                Buenter has asked that BT Extended not be distributed, so I
  1133.                don't have it available.  BT/2 v2.58 has folded in a lot of
  1134.                Michael's code though, so you may be pleasantly surprised.
  1135.  
  1136. SIO         -  SIO120.ARJ for the latest version as of this writing.  SIO*.*
  1137.                should get you just the latest version, as I keep only the latest
  1138.                online (exception: a beta archive may be out without
  1139.                documentation files, so I might have two)
  1140.  
  1141. 4OS2/32     -  4OS232.ARJ for the latest version (v1.11 as of this writing).
  1142.                v2.00 has been announced, but isn't yet shipping.
  1143.  
  1144.  
  1145. Thanks
  1146. ------
  1147.  
  1148. Thanks to Matthew Stein (1:250/701) for getting me involved with OS/2.
  1149. Without his help I probably never would have switched.
  1150.  
  1151. No Thanks to Matthew Stein (1:250/701) for telling me that every time I had a
  1152. problem, it was "the fault of that stupid DOS BBS and you should just switch
  1153. to Max/2 anyway"  8-)
  1154.  
  1155. And a word of closing
  1156. ---------------------
  1157.  
  1158. Regarding SIO - if there is one program you're going to register for your OS/2
  1159. BBS system, make it this one.  Take a minute to think where we'd be without Ray
  1160. Gwinn and SIO.  Can you say "CRC Error" ?  Knew you could.  Ray gave us X00
  1161. without charge, and now he's asking what I consider a paltry sum for
  1162. SIO/VSIO/VX00 ($25 US).  If you want Ray to continue to improve this fine
  1163. driver, we have to show support for him.  Thank you.
  1164.  
  1165.                                  James FitzGibbon
  1166.                                1:250/301@fidonet.org
  1167.  
  1168.  
  1169.  
  1170. ░░▒▒▓▓ FRONTEND.Q&A ▓▓▒▒░░
  1171.  
  1172. Total Lines: 1172        Total Size: 28k
  1173.